'use strict';
const {
query
} = require('node_mysql');
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
   var sql = 'SELECT * from my_user';
    query(sql)
        .then((data) => {
            //res.send(data);
			console.log(data);
        })
        .catch((err) => {
			console.log(err);
            // res.send("请求错误");
        })
	
	console.log();
	
	//返回数据给客户端
	return event
};
